package my.edu.model.information.service;

import cn.hutool.core.bean.BeanUtil;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import my.edu.model.information.entity.dto.AddressSaveDTO;
import org.springframework.stereotype.Service;
import my.edu.model.information.entity.Route;
import my.edu.model.information.mapper.RouteMapper;

@Service
public class RouteServiceImpl extends ServiceImpl<RouteMapper, Route> implements IRouteService{

    @Override
    public void updateByDTO( Route routedto) {
        Route route = BeanUtil.copyProperties(routedto, Route.class);
        updateById(route);
    }
}
